package com.tuo51.evaluate.vo.evaluate;

import com.tuo51.evaluate.domain.evaluatingV2.EvaluateV2Record;
import com.tuo51.evaluate.domain.evaluatingV2.EvaluateV2RecordDimensionScore;
import com.tuo51.foudation.utils.CopyUtils;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class EvaluateV2RecordVO {

    private String id;

    private Date created ;

    private Boolean deleted ;

    private String childrenId;

    private String childrenName;

    private Integer gender = 0;

    private Date birthday;

    private String weight;

    private String height;

    private String header;

    private Integer month = 0;

    // '总体评估及建议'
    private String advise;

    private String createTeacherId;

    private String createTeacherName;

    private Date evaluatingDate;

    //测评是不是已经完成了所有维度的填写 状态 false：未完成，true：已完成
    private Boolean finished = false;

    //是否付费了 0：否，1是
    private Boolean paid = false;

    private String rating;

    private int dq;

    private Long duration;

    //测评发布状态
    private Boolean published = false;

    private List<EvaluateV2ExtInfoVO> highLevelInfo;

    private List<EvaluateV2RecordDimensionScore> dimensionScores;

    public static EvaluateV2RecordVO of(EvaluateV2Record record){
        EvaluateV2RecordVO ret = new EvaluateV2RecordVO();

        CopyUtils.copyProperties(record, ret);

        return ret;
    }
}
